package com.itheima.tlias84.mapper;


import com.itheima.tlias84.entity.Log;
import com.itheima.tlias84.po.PageParam;
import com.itheima.tlias84.vo.Gender;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DataStatisticsMapper {

    /**
     * 性别统计查询
     * @return
     */
    List<Gender> selectByGender();

    /**
     * 工作统计查询
     * @return
     */
    List<Gender> selectByJob();

    /**
     * 日志查询
     * @param param
     * @return
     */
    List<Log> selectLog(@Param("p")PageParam param);

    /**
     * 添加日志
     * @param log
     * @return
     */
    int insertLog(@Param("l") Log log);


}
